package me.monster.smarttraffic.tool;

import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

import org.jetbrains.annotations.NotNull;

import me.monster.toolbarhelper.toolview.nav.PopProvider;

/**
 * @description
 * @author: Created jiangjiwei in 2020-02-11 15:53
 */
public class ActivityPop extends PopProvider {
    @Override
    public void pop(@NotNull View view) {
        AppCompatActivity activity = getActivity(view);
        if (activity != null) {
            activity.finish();
        }
    }
}
